﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateOrEdit.ascx.cs" Inherits="CMS.Controls.QA.CreateOrEdit" %>

<div style="display: none">
    <asp:TextBox ID="txtContentList" ClientIDMode="Static" runat="server" />
</div>

<asp:Literal ID="ltMessage" runat="server" />
<div class="fix">
</div>
<fieldset>
    <div class="widget" style="margin-top: 20px">
        <div class="head">
            <h5 class="iList">
                <asp:Literal ID="ltTitle" runat="server" /></h5>
        </div>
       <h4 class="iUser contentHead">1- Câu hỏi</h4>
        <div class="curves"></div>

        <fieldset>
        <div class="rowElem nobg">
            <label>
                Tên</label>
            <div class="formRight">
                <asp:TextBox ID="txtName" runat="server" CssClass="validate[required]" />
            </div>
            <div class="fix">
            </div>
        </div>
        <div class="rowElem">
            <label>
                Email</label>
            <div class="formRight">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="validate[required]" />
            </div>
            <div class="fix">
            </div>
        </div>
        <div class="rowElem">
            <label>
                Câu hỏi</label>
            <div class="formRight">
                <asp:TextBox ID="txtText" TextMode="MultiLine" Height="80" runat="server" CssClass="validate[required]" />
            </div>
            <div class="fix">
            </div>
        </div>
        <div class="rowElem">
            <label>
                Ngày gửi</label>
            <div class="formRight">
                    <asp:Literal ID="ltCreatedDate" runat="server" />
            </div>
            <div class="fix">
            </div>
        </div>
        <div class="rowElem">
            <label>
                Nổi bật</label>
            <div class="formRight">
                <asp:CheckBox ID="cbIsFeature" Text="Câu hỏi thường gặp" runat="server" />
            </div>
            <div class="fix">
            </div>
        </div>
        </fieldset>

        <h4 class="iUser contentHead">
            2- Câu trả lời
            <a class="btn14 mr5 floatright">
                <img src="/images/icons/dark/add.png" alt="" class="floatright topDir" onclick="createQABlank();"  title="Thêm câu trả lời"/>
            </a>
        </h4>
        <div class="curves"></div>        

        <div class="qa-answer"></div>

        <div class="body floatright">
            <asp:Button ID="btnPublish" Text="Xuất bản" ClientIDMode="Static" Visible="false"
                CssClass="seaBtn mb15 ml5" OnClick="BtnPublish" OnClientClick="getDataQA();"
                runat="server" />
            <asp:Button ID="btnDelete" Text="Xóa bài viết" ClientIDMode="Static" Visible="false"
                CssClass="redBtn mb15 ml5" OnClick="BtnDelete" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa?');"
                runat="server" />
            <asp:Button ID="btnSave" Text="Lưu lại" ClientIDMode="Static" Visible="false" CssClass="seaBtn mb15 ml5 mr15"
                OnClick="BtnSave" OnClientClick="getDataQA();" runat="server" />
        </div>
        <div class="fix">
        </div>
    </div>
</fieldset>

